package jw.repository.product;


import jw.model.product.WxProductType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface WxProductTypeRepository extends JpaRepository<WxProductType,Integer>, JpaSpecificationExecutor<WxProductType> {

    @Query("select p from WxProductType p order by p.sort asc")
    List<WxProductType> findBySort();

}
